<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "usergroup".
 *
 * @property int $groupid
 * @property string $grouptitle
 */
class Usergroup extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'usergroup';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['groupid'], 'required'],
            [['groupid'], 'integer'],
            [['grouptitle'], 'string', 'max' => 128],
            [['groupid'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'groupid' => 'Groupid',
            'grouptitle' => 'Grouptitle',
        ];
    }
}
